package com.hospital.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("drug")
public class Drug {
    @TableId(value = "drugId", type = IdType.AUTO)
    private Integer drugId;
    private Integer cId;        // 分类ID
    private String dName;       // 药品名称
    private String spec;        // 规格
    private BigDecimal price;   // 单价
    private Integer stock;      // 库存
}

